import request from '@/utils/request'

// 查询租户组件组列表
export function listGroup(query) {
    return request({
        url: '/business/tenantComponentGroup/list',
        method: 'get',
        params: query
    })
}

// 查询租户组件组详细
export function getGroup(id) {
    return request({
        url: '/business/tenantComponentGroup/' + id,
        method: 'get'
    })
}

// 新增租户组件组
export function addGroup(data) {
    return request({
        url: '/business/tenantComponentGroup',
        method: 'post',
        data: data
    })
}

// 修改租户组件组
export function updateGroup(data) {
    return request({
        url: '/business/tenantComponentGroup',
        method: 'put',
        data: data
    })
}

// 删除租户组件组
export function delGroup(id) {
    return request({
        url: '/business/tenantComponentGroup/' + id,
        method: 'delete'
    })
}
// 查询所有组及每个组包含的组件列表(含系统及租户组)
export function listAllGroup(query) {
    return request({
        url: '/business/tenantComponentGroup/listAllGroup',
        method: 'get',
        params: query
    })
}
